﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC_Uthorization.Domain.Entity
{
    /// <summary>
    /// 菜单表
    /// </summary>
    [Table("sys_menu")]
    public class sys_menu:Audit
    {
        /// <summary>
        /// 菜单ID
        /// </summary>
        [Key]
        public int id { get; set; }
        /// <summary>
        /// 系统编号
        /// </summary>
        public string sys_id { get; set; }
        /// <summary>
        /// 父菜单ID，一级菜单为0
        /// </summary>
        public int parent_id { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string menu_name { get; set; }
        /// <summary>
        /// 菜单URL
        /// </summary>
        public string menu_url { get; set; }
        /// <summary>
        /// 授权(多个用逗号分隔，如：user:list,user:create)
        /// </summary>
        public string perms { get; set; }
        /// <summary>
        /// 类型   0：目录   1：菜单   2：按钮
        /// </summary>
        public int type { get; set; }
        /// <summary>
        /// 菜单图标
        /// </summary>
        public string? menu_icon { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int order_num { get; set; }
       
    }
}
